Skip to content

Conversation

unicornware
Copy link
Member

@unicornware unicornware commented Jul 27, 2022

Description

Implemented plugin options as a TypeScript interface.

The options interface extends ParserOptions and adds several plugin specific options:

  • apply?: Conditional application
  • enforce?: Plugin ordering
  • exclude?: Glob patterns matching files to exclude from parsing. Applied after include
  • handler?: Apply additional processing to a ComponentDoc before __docgenInfo is declared + assigned a value
  • include?: Glob patterns matching files to parse for docgen information
  • name?: Generate the name of the component to add a __docgenInfo property to
  • tsconfig?: Name of tsconfig file or path to tsconfig file

Tests

N/A

Additional context

Linked issues

closes #1

Submission checklist

  • pr title prefixed with PR: (e.g: PR: User authentication)
  • pr title describes functionality (not vague title like Update index.md)
  • pr targets branch next
  • project was run locally to verify that there are no errors
  • documentation added or updated

Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
@unicornware unicornware added type:feat new features and improvements scope:plugin plugin implementation type:task project tasks labels Jul 27, 2022
@unicornware unicornware self-assigned this Jul 27, 2022
@unicornware unicornware linked an issue Jul 27, 2022 that may be closed by this pull request
8 tasks
Copy link

@flexdevelopment flexdevelopment left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍🏾

@unicornware unicornware merged commit d72528f into next Jul 27, 2022
@unicornware unicornware deleted the feat/1-options branch July 27, 2022 01:20
unicornware added a commit that referenced this pull request Jul 31, 2022
feat(options): plugin specific options

Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
@unicornware unicornware changed the title PR: Options feat(plugin): options Aug 1, 2022
@unicornware unicornware added the status:released merged and released label Aug 1, 2022
@unicornware unicornware removed the status:released merged and released label Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:plugin plugin implementation type:feat new features and improvements type:task project tasks
Development

Successfully merging this pull request may close these issues.

🔨 options
2 participants